Downloadable File
class DownloadableFile(var id: String, fileName: String?, var status: DownloadStatus, downloadUrl: String? = null, fileSize: Long? = null, preview: ByteArray? = null, data: ByteArray? = null, var downloadProgress: Float = 0.0f) : BaseFile
Represents a downloadable file attachment within an IncomingAttachmentStatement.
This class holds the metadata and binary data for files exchanged in the conversation. Consumer applications can read fileName, data, and fileSize to access the file's content.
Properties
Link copied to clipboard
Download progress. A fraction from 0.0 to 1.0 when the file size is known. -1.0 while a video preview is retrieved or a download URL is refreshed.
Link copied to clipboard
The URL the file can be downloaded from, or null if not available.
Link copied to clipboard
The current download status of the file.